package cn.exrick.xboot.modules.graphics.entity;

import cn.exrick.xboot.base.XbootBaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.Value;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author njp
 */
@Data
@Entity
@Table(name = "t_graphics_container")
@TableName("t_graphics_container")
@ApiModel(value = "画布容器中间表")
public class GraphicsContainer extends XbootBaseEntity {

    private static final long serialVersionUID = 1L;
    /**
     * 20200904 njp
     * 先不考虑联合主键
     * 暂时允许同画布中存在两个以上一样的容器
     * 如果想要禁止，可直接在表中添加画布id与容器id的联合组件
     */
    @ApiModelProperty(value="画布id")
    private String graphicsId;
    @ApiModelProperty(value="容器id")
    private String containerId;
    @ApiModelProperty(value="容器地址")
    private String content;
    @ApiModelProperty(value="合并列")
    private String colSpan;
    @ApiModelProperty(value="合并行")
    private String rowSpan;
    @ApiModelProperty(value = "列宽")
    private String width;
    @ApiModelProperty(value = "行高")
    private String height;
    @ApiModelProperty(value = "容器标题")
    private String cTitle;

}